package com.kim.nidoya.net.entity;

import com.kim.net.NetEntity;
import com.kim.nidoya.net.URLConstant;

public class LoginEntity extends NetEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3675426920112604414L;

	String account;
	String password;

	public LoginEntity(String account, String password) {
		super();
		this.account = account;
		this.password = password;
	}

	@Override
	protected void init() {
//		this.url = URLConstant.URL_LOGIN;
		this.url =URLConstant.URL_LOGIN + "?LoginName="
		+ account + "&Password=" + password;
	}

	@Override
	protected void initHttpHeader() {

	}

	@Override
	public String getSendData() {
		String sendData = "{\"LoginName\":\"" + account + "\",\"Password\":\""
				+ password + "\"}";
		System.out.println("getSendData:" + sendData);
		sendData = "";
		return sendData;
	}

}
